#define _CRT_SECURE_NO_WARNINGS 1
#include<string>
#include<iostream>
#include<algorithm>
using namespace std;
int main()
{
	string s = "99";
	string t = "1";
	string str;
	reverse(s.begin(), s.end());
	reverse(t.begin(), t.end());
	if (s.size() > t.size())
	{
		int temp = s.size() - t.size();
		for (int i = 0; i < temp; i++)
		{
			t.push_back('0');
		}
	}
	else
	{
		int temp = t.size() - s.size();
		for (int i = 0; i < temp; i++)
		{
			s.push_back('0');
		}
	}
	int jinwei = 0;
	for (int i = 0; i < s.size(); i++)
	{
		int temp = s[i] - 48 + t[i] - 48+jinwei;
		jinwei = 0;
		if (temp > 9)
		{
			jinwei = 1;
			temp -= 10;
		}
		str += temp + 48;
	}
	if (jinwei == 1) str += 49;
	reverse(str.begin(), str.end());
	cout << str;
	return 0;
}